﻿using UnityEngine;using System.Collections;public class ShowButton : MonoBehaviour {	bool IsShowBtn = false;	public GameObject _UIObj;	// Use this for initialization	void Start () 	{		_UIObj.SetActive(false);	}		// Update is called once per frame	void Update () 	{		}	public void OnToggleValueChange()	{		if(IsShowBtn)		{			_UIObj.SetActive(false);			IsShowBtn = false;		}		else		{			_UIObj.SetActive(true);						IsShowBtn = true;		}	}}